import request from '@/utils/request'

// 查询视频回收站列表
export function listVideoRecoverStation(query) {
  return request({
    url: '/videoRecoverStation/videoRecoverStation/list',
    method: 'get',
    params: query
  })
}

// 查询视频回收站详细
export function getVideoRecoverStation(id) {
  return request({
    url: '/videoRecoverStation/videoRecoverStation/' + id,
    method: 'get'
  })
}

// 新增视频回收站
export function addVideoRecoverStation(data) {
  return request({
    url: '/videoRecoverStation/videoRecoverStation',
    method: 'post',
    data: data
  })
}

// 修改视频回收站
export function updateVideoRecoverStation(data) {
  return request({
    url: '/videoRecoverStation/videoRecoverStation',
    method: 'put',
    data: data
  })
}

// 删除视频回收站
export function delVideoRecoverStation(id) {
  return request({
    url: '/videoRecoverStation/videoRecoverStation/' + id,
    method: 'delete'
  })
}

// 恢复视频数据
export function recoverVideoData(ids) {
  return request({
    url: '/videoRecoverStation/videoRecoverStation/recoverData/' + ids,
    method: 'post'
  })
}
